import {createRouter,createWebHistory} from 'vue-router';
const routes=[
    {
        path:"/",
        name:"Home",
        component:()=>import("../views/home/HomeView.vue"),
        meta:{title:"首页"}

    },
    {
        path:"/about",
        name:"About",
        component:()=>import("../views/about/AboutView.vue"),
        meta:{title:"关于我们"}

    },
    {
        path:"/news/:cat",
        name:"News",
        component:()=>import("../views/news/NewsView.vue"),
        meta:{title:"新闻页"}

    },
    {
        path:"/login",
        name:"Login",
        component:()=>import("../views/LoginView.vue"),
        meta:{title:"登录"}

    }

]
const router= createRouter({
    history:createWebHistory(),
    routes
})
export default router;